import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'// 导入全局样式
import './assets/fonts/iconfont.css'// 导入输入框图标
import './assets/font-awesome-4.7.0/font-awesome-4.7.0/css/font-awesome.css'// 导入菜单图标
import * as echarts from 'echarts' // sqs
import store from './store/index'
import moment from 'moment' // 引入moment
import 'moment/locale/zh-cn' //引入中文包
Vue.prototype.$moment = moment // 全局配置moment
import XLSX from 'xlsx' //引入XLSX
Vue.prototype.$XLSX = XLSX //全局配置
import './plugins/dialog' // 引入可拖拽的dialog对应js文件


//配置axios
import axios from 'axios'
axios.defaults.baseURL = "http://localhost:3000/"
axios.defaults.withCredentials = true
Vue.prototype.$axios = axios

Vue.prototype.$echarts = echarts


Vue.config.productionTip = false

// axios.defaults.baseURL = 'http://127.0.0.1:8888/api/private/v1/'//配置请求根路径
// axios.interceptors.request.use(config => {
//   console.log(config)
//   config.headers.Authorization = window.sessionStorage.getItem('token')
//   return config
// }) */


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
